/*
 * rf12.h
 *
 *  Created on: 2010-06-24
 *      Author: kotar
 */

#ifndef RF12_H_
#define RF12_H_

#define RF12_BUFF_SIZE 32

unsigned int rf12_spi_readwrite(unsigned int data);
void rf12_init();
inline unsigned int rf12_read_sr();
inline void rf12_fifo_reset();
void rf12_dump_sr();
void rf12_rx_mode(long int baudrate);
void rf12_tx_mode(long int baudrate);
void rf12_send(char *content);
char* rf12_receive();

#endif /* RF12_H_ */
